package com.ruoyi.common.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * TODO 劳务管理平台——正式服务器配置
 *
 * @author 然子哥
 * @date 2023/6/5 11:24
 */
@Data
@Component
public class SysHuaWeiLinux implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ip地址
     */
    @Value(value = "${SysHuaWeiLinux.remoteAddr}")
    //private final String remoteAddr = "121.36.48.57";
    private String remoteAddr;

    /**
     * 域名
     */
    @Value(value = "${SysHuaWeiLinux.domainName}")
    //private final String domainName = "labor.ibstd.cn";
    private String domainName;

    /**
     * 端口号
     */
    @Value(value = "${SysHuaWeiLinux.port}")
    //private final Integer port = 43221;
    private Integer port;

    /**
     * SFTP 登录用户名
     */
    @Value(value = "${SysHuaWeiLinux.username}")
    //private final String username = "houhaoran";
    private String username;

    /**
     * SFTP 登录密码
     */
    @Value(value = "${SysHuaWeiLinux.password}")
    //private final String password = "jglw01hwyzaq@";
    private String password;

    /**
     * 上传的压缩包名字
     */
    private String zipName;

    Date newDate = new Date();
    long time = newDate.getTime();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");

    /**
     * 系统当天的日期
     */
    private String date = sdf.format(time);


    /**
     * TODO 劳务指定zip压缩包文件夹路径
     */
    @Value(value = "${SysHuaWeiLinux.zipFolder}")
    //private final String zipFolder = "/mnt/data/project/labormanagement/folder/images/zipPhoto/";
    private String zipFolder;

    /**
     * TODO 劳务上传zip压缩包文件夹
     */
    private String zipPackageFolder = zipFolder + date + "/";

    /**
     * TODO 劳务上传劳务人员图片文件夹
     */
    @Value(value = "${SysHuaWeiLinux.laborPictureFolder}")
    //private final String laborPictureFolder = "/mnt/data/project/labormanagement/folder/images/photo/";
    private String laborPictureFolder;

    /**
     * TODO 劳务上传培训文件管理文件夹
     */
    @Value(value = "${SysHuaWeiLinux.trainingFileFolder}")
    //private final String trainingFileFolder = "/mnt/data/project/labormanagement/folder/images/video/";
    private String trainingFileFolder;

    /**
     * TODO 劳务上传平台logo文件夹
     */
    @Value(value = "${SysHuaWeiLinux.logoFolder}")
    //private final String logoFolder = "/mnt/data/project/labormanagement/folder/front/logo/";
    private String logoFolder;

    /**
     * TODO 劳务上传商品图片文件夹
     */
    @Value(value = "${SysHuaWeiLinux.productPictureFolder}")
    //private final String productPictureFolder = "/mnt/data/project/labormanagement/folder/images/goods/";
    private String productPictureFolder;

    /**
     * TODO 劳务上传劳务人员二维码图片文件夹
     */
    @Value(value = "${SysHuaWeiLinux.QRCodeLaborPerFolder}")
    //private final String QRCodeLaborPerFolder = "/mnt/data/project/labormanagement/folder/images/ewm/";
    private String QRCodeLaborPerFolder;

    /**
     * TODO  上传图片的地址
     */
    @Value(value = "${SysHuaWeiLinux.pictureUrl}")
    //private final String pictureUrl = "https://labor.ibstd.cn/images/";
    private String pictureUrl;
    @Value(value = "${SysHuaWeiLinux.pictureZips}")
    //private final String pictureZips = "https://labor.ibstd.cn/zips/";
    private String pictureZips;

    /**
     * @author SunZhe
     * @description 上传人员二维码路径
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.QRCodePath}")
    private String QRCodePath;

    /**
     * @author SunZhe
     * @description 华为云人脸  库名
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.kuName}")
    private String kuName;

    /**
     * @author SunZhe
     * @description 华为云人脸  ak校验
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.ak}")
    private String ak;

    /**
     * @author SunZhe
     * @description 华为云人脸  sk校验
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.sk}")
    private String sk;


    /**
     * 总部园id
     *
     * @author SunZhe
     * @description
     * @param[1] null
     * @return
     * @date 2023/8/18 17:55
     **/
    @Value("${SysHuaWeiLinux.orgID}")
    //private final String orgID = "145";
    private String orgID;

    /*
     * 阿里云短信
     * 用于考勤推送拉取一致性
     * */
    @Value(value = "${SysHuaWeiLinux.aliyunKeyId}")
    //private final String aliyunKeyId = "LTAI5tEccMh7Cmx3pgeoV5Gw";
    private String aliyunKeyId;
    @Value(value = "${SysHuaWeiLinux.aliyunKeySecret}")
    //private final String aliyunKeySecret = "Fjky5HCIx4iO5zKTizyOVuxv76NzT9";
    private String aliyunKeySecret;
    @Value(value = "${SysHuaWeiLinux.aliyunTemplateCode}")
    //private final String aliyunTemplateCode = "SMS_464125606";
    private String aliyunTemplateCode;
    @Value(value = "${SysHuaWeiLinux.signName}")
    //private final String signName = "玖亘科技";
    private String signName;
    //西片区led推送
    @Value(value = "${SysHuaWeiLinux.ledUrl}")
    private String ledUrl;

    /**
     * @author SunZhe
     * @description 上传培训视频到服务器
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.videos}")
    private String videos;

    /**
     * @author SunZhe
     * @description senseLink 路径
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.senseLinkUrlStr}")
    private String senseLinkUrlStr;

    /**
     * @author SunZhe
     * @description 青云店智慧平台
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.QingyunStoreUrl}")
    private String QingyunStoreUrl;

    /**
     * @author SunZhe
     * @description 旷视九霄图片上传
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.JiuxiaoPictureUpload}")
    private String JiuxiaoPictureUpload;

    @Value(value = "${SysHuaWeiLinux.JiuxiaoPlatformPath}")
    private String JiuxiaoPlatformPath;

    /**
     * @author SunZhe
     * @description 百度地图url
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.baiduMapsURL}")
    private String baiduMapsURL;
    /**
     * @author SunZhe
     * @description 百度地图url
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.baiduMapsAk}")
    private String baiduMapsAk;

    /**
     * @author SunZhe
     * @description 商品积分获取方式：ture：使用本平台商品积分填充，false：使用兑换机平台提供积分
     * @date 2024/4/22 10:05
     **/
    @Value(value = "${SysHuaWeiLinux.PointsRedemptionSwitch}")
    private Boolean PointsRedemptionSwitch;



    //TODO ==========================================================  ----------------------------------------------------
    //private static final long serialVersionUID = 1L;
    //
    ////*//**
    ////* ip地址
    ////*//*
    //private final String remoteAddr = "192.168.0.116";
    //
    //// *//**
    ////* 端口号
    //// *//*
    //private final Integer port = 222;
    //
    ////*//**
    ////* SFTP 登录用户名
    //// *//*
    //private final String username = "root";
    //
    ////*//**
    ////* SFTP 登录密码
    ////*//*
    //private final String password = "root";
    //
    ////*//**
    //// * 上传的压缩包名字
    //// *//*
    //private String zipName;
    //
    //Date newDate = new Date();
    //long time = newDate.getTime();
    //SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    //
    //// *//**
    //// * 系统当天的日期
    //// *//*
    //private String date = sdf.format(time);
    //
    //// *//**
    //// * TODO 劳务上传zip压缩包文件夹
    //// *//*
    //private final String zipPackageFolder = "/usr/local/src/images/zipPhoto/" + date + "/";
    //
    //// *//**
    ////  * TODO 劳务指定zip压缩包文件夹路径
    ////  *//*
    //private final String zipFolder = "/usr/local/src/images/zipPhoto/";
    //
    //// *//**
    //// * TODO 劳务上传劳务人员图片文件夹
    //// *//*
    //private final String laborPictureFolder = "/usr/local/src/images/photo/";
    ////TODO 批量上传访问路由
    //private final String pictureZips = "http://192.168.0.116:7002/zips/";
    //
    ////*//**
    //// * TODO 劳务上传培训文件管理文件夹
    ////*//*
    //private final String trainingFileFolder = "/usr/local/src/images/video/";
    //
    ////*//**
    //// * TODO 劳务上传平台logo文件夹
    //// *//*
    //private final String logoFolder = "/usr/local/src/front/logo/";
    //
    //// *//**
    //// * TODO 劳务上传商品图片文件夹
    ////*//*
    //private final String productPictureFolder = "/usr/local/src/images/goods/";
    //
    ////*//**
    ////* TODO 劳务上传劳务人员二维码图片文件夹
    ////*//*
    //private final String  QRCodeLaborPerFolder = "/usr/local/src/images/ewm/";
    ////**
    //// TODO  上传图片的地址
    ////*
    //private final String pictureUrl = "http://192.168.0.116:7002/images/";
    ///**
    // * 总部园id
    // * @author SunZhe
    // * @description
    // * @param[1] null
    // * @return
    // * @date 2023/8/18 17:55
    // **/
    //private final String orgID = "143";
    //
    ///*
    // * 阿里云短信
    // * 用于考勤推送拉取一致性
    // * */
    //private final String aliyunKeyId = "LTAI5tEccMh7Ccx3pgeodsfGw";
    //private final String aliyunKeySecret = "Fjky5HCIx4iO5zKTigsdgVuxv76NzT9";
    //private final String aliyunTemplateCode = "SMS_478325606";
    //private final String signName = "玖亘科技";


}
